package com.fancy.mobileschool.entity;

/**
 * Created by Jackie on 2017/11/12.
 */

public class YunFile {

    public int id;

    public String file_name;

    public String time;

    public String type;

    public String file_length;

    public int status;

    public YunFile(int id, String file_name, String time, String file_length, String type) {
        this.id = id;
        this.file_name = file_name;
        this.time = time;
        this.file_length = file_length;
        this.type = type;
    }

    public YunFile() {
    }


    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }


    public void setTime(String time) {
        this.time = time;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setFile_length(String file_length) {
        this.file_length = file_length;
    }

    @Override
    public String toString() {
        return "YunFile{" +
                "id=" + id +
                ", file_name='" + file_name + '\'' +
                ", time='" + time + '\'' +
                ", type='" + type + '\'' +
                ", file_length='" + file_length + '\'' +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        YunFile yunFile = (YunFile) o;
        return file_name.equals(yunFile.file_name) && type.equals(yunFile.type);
    }

    @Override
    public int hashCode() {
        return file_name.hashCode() + type.hashCode();
    }
}
